package chapter13;

public class SortRectangles {
  public static void main(String[] args) {
    ComparableRectangle[] squares = {
      new ComparableRectangle(3.4),
      new ComparableRectangle(13.24),
      new ComparableRectangle(7.4),
      new ComparableRectangle(1.4)};
    java.util.Arrays.sort(squares);
    for (Square square:squares) {
      System.out.print(square + " ");
      System.out.println();
    }
  }
}
